<template>
  <div class="header_box">
    <div class="icon">
      <van-icon name="arrow-left" @click="onGO" />
    </div>
    <div class="title">
      <span> {{ this.$route.meta.title }}</span>
    </div>
    <div></div>
  </div>
</template>

<script>
export default {
  methods: {
    onGO() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss">
.header_box {
  width: 100%;
  height: 1rem;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  div {
    width: 30%;
    height: 100%;
    // background-color: red;
  }
  .icon {
    width: 30%;
    display: flex;
    align-items: center;
    i {
      font-size: 25px;
    }
  }
  .title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>